package com.lxk.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BillboardExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BillboardExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBillboardIdIsNull() {
            addCriterion("billboard_id is null");
            return (Criteria) this;
        }

        public Criteria andBillboardIdIsNotNull() {
            addCriterion("billboard_id is not null");
            return (Criteria) this;
        }

        public Criteria andBillboardIdEqualTo(Integer value) {
            addCriterion("billboard_id =", value, "billboardId");
            return (Criteria) this;
        }

        public Criteria andBillboardIdNotEqualTo(Integer value) {
            addCriterion("billboard_id <>", value, "billboardId");
            return (Criteria) this;
        }

        public Criteria andBillboardIdGreaterThan(Integer value) {
            addCriterion("billboard_id >", value, "billboardId");
            return (Criteria) this;
        }

        public Criteria andBillboardIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("billboard_id >=", value, "billboardId");
            return (Criteria) this;
        }

        public Criteria andBillboardIdLessThan(Integer value) {
            addCriterion("billboard_id <", value, "billboardId");
            return (Criteria) this;
        }

        public Criteria andBillboardIdLessThanOrEqualTo(Integer value) {
            addCriterion("billboard_id <=", value, "billboardId");
            return (Criteria) this;
        }

        public Criteria andBillboardIdIn(List<Integer> values) {
            addCriterion("billboard_id in", values, "billboardId");
            return (Criteria) this;
        }

        public Criteria andBillboardIdNotIn(List<Integer> values) {
            addCriterion("billboard_id not in", values, "billboardId");
            return (Criteria) this;
        }

        public Criteria andBillboardIdBetween(Integer value1, Integer value2) {
            addCriterion("billboard_id between", value1, value2, "billboardId");
            return (Criteria) this;
        }

        public Criteria andBillboardIdNotBetween(Integer value1, Integer value2) {
            addCriterion("billboard_id not between", value1, value2, "billboardId");
            return (Criteria) this;
        }

        public Criteria andBillboardTitleIsNull() {
            addCriterion("billboard_title is null");
            return (Criteria) this;
        }

        public Criteria andBillboardTitleIsNotNull() {
            addCriterion("billboard_title is not null");
            return (Criteria) this;
        }

        public Criteria andBillboardTitleEqualTo(String value) {
            addCriterion("billboard_title =", value, "billboardTitle");
            return (Criteria) this;
        }

        public Criteria andBillboardTitleNotEqualTo(String value) {
            addCriterion("billboard_title <>", value, "billboardTitle");
            return (Criteria) this;
        }

        public Criteria andBillboardTitleGreaterThan(String value) {
            addCriterion("billboard_title >", value, "billboardTitle");
            return (Criteria) this;
        }

        public Criteria andBillboardTitleGreaterThanOrEqualTo(String value) {
            addCriterion("billboard_title >=", value, "billboardTitle");
            return (Criteria) this;
        }

        public Criteria andBillboardTitleLessThan(String value) {
            addCriterion("billboard_title <", value, "billboardTitle");
            return (Criteria) this;
        }

        public Criteria andBillboardTitleLessThanOrEqualTo(String value) {
            addCriterion("billboard_title <=", value, "billboardTitle");
            return (Criteria) this;
        }

        public Criteria andBillboardTitleLike(String value) {
            addCriterion("billboard_title like", value, "billboardTitle");
            return (Criteria) this;
        }

        public Criteria andBillboardTitleNotLike(String value) {
            addCriterion("billboard_title not like", value, "billboardTitle");
            return (Criteria) this;
        }

        public Criteria andBillboardTitleIn(List<String> values) {
            addCriterion("billboard_title in", values, "billboardTitle");
            return (Criteria) this;
        }

        public Criteria andBillboardTitleNotIn(List<String> values) {
            addCriterion("billboard_title not in", values, "billboardTitle");
            return (Criteria) this;
        }

        public Criteria andBillboardTitleBetween(String value1, String value2) {
            addCriterion("billboard_title between", value1, value2, "billboardTitle");
            return (Criteria) this;
        }

        public Criteria andBillboardTitleNotBetween(String value1, String value2) {
            addCriterion("billboard_title not between", value1, value2, "billboardTitle");
            return (Criteria) this;
        }

        public Criteria andBillboardDescIsNull() {
            addCriterion("billboard_desc is null");
            return (Criteria) this;
        }

        public Criteria andBillboardDescIsNotNull() {
            addCriterion("billboard_desc is not null");
            return (Criteria) this;
        }

        public Criteria andBillboardDescEqualTo(String value) {
            addCriterion("billboard_desc =", value, "billboardDesc");
            return (Criteria) this;
        }

        public Criteria andBillboardDescNotEqualTo(String value) {
            addCriterion("billboard_desc <>", value, "billboardDesc");
            return (Criteria) this;
        }

        public Criteria andBillboardDescGreaterThan(String value) {
            addCriterion("billboard_desc >", value, "billboardDesc");
            return (Criteria) this;
        }

        public Criteria andBillboardDescGreaterThanOrEqualTo(String value) {
            addCriterion("billboard_desc >=", value, "billboardDesc");
            return (Criteria) this;
        }

        public Criteria andBillboardDescLessThan(String value) {
            addCriterion("billboard_desc <", value, "billboardDesc");
            return (Criteria) this;
        }

        public Criteria andBillboardDescLessThanOrEqualTo(String value) {
            addCriterion("billboard_desc <=", value, "billboardDesc");
            return (Criteria) this;
        }

        public Criteria andBillboardDescLike(String value) {
            addCriterion("billboard_desc like", value, "billboardDesc");
            return (Criteria) this;
        }

        public Criteria andBillboardDescNotLike(String value) {
            addCriterion("billboard_desc not like", value, "billboardDesc");
            return (Criteria) this;
        }

        public Criteria andBillboardDescIn(List<String> values) {
            addCriterion("billboard_desc in", values, "billboardDesc");
            return (Criteria) this;
        }

        public Criteria andBillboardDescNotIn(List<String> values) {
            addCriterion("billboard_desc not in", values, "billboardDesc");
            return (Criteria) this;
        }

        public Criteria andBillboardDescBetween(String value1, String value2) {
            addCriterion("billboard_desc between", value1, value2, "billboardDesc");
            return (Criteria) this;
        }

        public Criteria andBillboardDescNotBetween(String value1, String value2) {
            addCriterion("billboard_desc not between", value1, value2, "billboardDesc");
            return (Criteria) this;
        }

        public Criteria andBillboardPicIsNull() {
            addCriterion("billboard_pic is null");
            return (Criteria) this;
        }

        public Criteria andBillboardPicIsNotNull() {
            addCriterion("billboard_pic is not null");
            return (Criteria) this;
        }

        public Criteria andBillboardPicEqualTo(String value) {
            addCriterion("billboard_pic =", value, "billboardPic");
            return (Criteria) this;
        }

        public Criteria andBillboardPicNotEqualTo(String value) {
            addCriterion("billboard_pic <>", value, "billboardPic");
            return (Criteria) this;
        }

        public Criteria andBillboardPicGreaterThan(String value) {
            addCriterion("billboard_pic >", value, "billboardPic");
            return (Criteria) this;
        }

        public Criteria andBillboardPicGreaterThanOrEqualTo(String value) {
            addCriterion("billboard_pic >=", value, "billboardPic");
            return (Criteria) this;
        }

        public Criteria andBillboardPicLessThan(String value) {
            addCriterion("billboard_pic <", value, "billboardPic");
            return (Criteria) this;
        }

        public Criteria andBillboardPicLessThanOrEqualTo(String value) {
            addCriterion("billboard_pic <=", value, "billboardPic");
            return (Criteria) this;
        }

        public Criteria andBillboardPicLike(String value) {
            addCriterion("billboard_pic like", value, "billboardPic");
            return (Criteria) this;
        }

        public Criteria andBillboardPicNotLike(String value) {
            addCriterion("billboard_pic not like", value, "billboardPic");
            return (Criteria) this;
        }

        public Criteria andBillboardPicIn(List<String> values) {
            addCriterion("billboard_pic in", values, "billboardPic");
            return (Criteria) this;
        }

        public Criteria andBillboardPicNotIn(List<String> values) {
            addCriterion("billboard_pic not in", values, "billboardPic");
            return (Criteria) this;
        }

        public Criteria andBillboardPicBetween(String value1, String value2) {
            addCriterion("billboard_pic between", value1, value2, "billboardPic");
            return (Criteria) this;
        }

        public Criteria andBillboardPicNotBetween(String value1, String value2) {
            addCriterion("billboard_pic not between", value1, value2, "billboardPic");
            return (Criteria) this;
        }

        public Criteria andBillboardUrlIsNull() {
            addCriterion("billboard_url is null");
            return (Criteria) this;
        }

        public Criteria andBillboardUrlIsNotNull() {
            addCriterion("billboard_url is not null");
            return (Criteria) this;
        }

        public Criteria andBillboardUrlEqualTo(String value) {
            addCriterion("billboard_url =", value, "billboardUrl");
            return (Criteria) this;
        }

        public Criteria andBillboardUrlNotEqualTo(String value) {
            addCriterion("billboard_url <>", value, "billboardUrl");
            return (Criteria) this;
        }

        public Criteria andBillboardUrlGreaterThan(String value) {
            addCriterion("billboard_url >", value, "billboardUrl");
            return (Criteria) this;
        }

        public Criteria andBillboardUrlGreaterThanOrEqualTo(String value) {
            addCriterion("billboard_url >=", value, "billboardUrl");
            return (Criteria) this;
        }

        public Criteria andBillboardUrlLessThan(String value) {
            addCriterion("billboard_url <", value, "billboardUrl");
            return (Criteria) this;
        }

        public Criteria andBillboardUrlLessThanOrEqualTo(String value) {
            addCriterion("billboard_url <=", value, "billboardUrl");
            return (Criteria) this;
        }

        public Criteria andBillboardUrlLike(String value) {
            addCriterion("billboard_url like", value, "billboardUrl");
            return (Criteria) this;
        }

        public Criteria andBillboardUrlNotLike(String value) {
            addCriterion("billboard_url not like", value, "billboardUrl");
            return (Criteria) this;
        }

        public Criteria andBillboardUrlIn(List<String> values) {
            addCriterion("billboard_url in", values, "billboardUrl");
            return (Criteria) this;
        }

        public Criteria andBillboardUrlNotIn(List<String> values) {
            addCriterion("billboard_url not in", values, "billboardUrl");
            return (Criteria) this;
        }

        public Criteria andBillboardUrlBetween(String value1, String value2) {
            addCriterion("billboard_url between", value1, value2, "billboardUrl");
            return (Criteria) this;
        }

        public Criteria andBillboardUrlNotBetween(String value1, String value2) {
            addCriterion("billboard_url not between", value1, value2, "billboardUrl");
            return (Criteria) this;
        }

        public Criteria andBillboardOrgIsNull() {
            addCriterion("billboard_org is null");
            return (Criteria) this;
        }

        public Criteria andBillboardOrgIsNotNull() {
            addCriterion("billboard_org is not null");
            return (Criteria) this;
        }

        public Criteria andBillboardOrgEqualTo(String value) {
            addCriterion("billboard_org =", value, "billboardOrg");
            return (Criteria) this;
        }

        public Criteria andBillboardOrgNotEqualTo(String value) {
            addCriterion("billboard_org <>", value, "billboardOrg");
            return (Criteria) this;
        }

        public Criteria andBillboardOrgGreaterThan(String value) {
            addCriterion("billboard_org >", value, "billboardOrg");
            return (Criteria) this;
        }

        public Criteria andBillboardOrgGreaterThanOrEqualTo(String value) {
            addCriterion("billboard_org >=", value, "billboardOrg");
            return (Criteria) this;
        }

        public Criteria andBillboardOrgLessThan(String value) {
            addCriterion("billboard_org <", value, "billboardOrg");
            return (Criteria) this;
        }

        public Criteria andBillboardOrgLessThanOrEqualTo(String value) {
            addCriterion("billboard_org <=", value, "billboardOrg");
            return (Criteria) this;
        }

        public Criteria andBillboardOrgLike(String value) {
            addCriterion("billboard_org like", value, "billboardOrg");
            return (Criteria) this;
        }

        public Criteria andBillboardOrgNotLike(String value) {
            addCriterion("billboard_org not like", value, "billboardOrg");
            return (Criteria) this;
        }

        public Criteria andBillboardOrgIn(List<String> values) {
            addCriterion("billboard_org in", values, "billboardOrg");
            return (Criteria) this;
        }

        public Criteria andBillboardOrgNotIn(List<String> values) {
            addCriterion("billboard_org not in", values, "billboardOrg");
            return (Criteria) this;
        }

        public Criteria andBillboardOrgBetween(String value1, String value2) {
            addCriterion("billboard_org between", value1, value2, "billboardOrg");
            return (Criteria) this;
        }

        public Criteria andBillboardOrgNotBetween(String value1, String value2) {
            addCriterion("billboard_org not between", value1, value2, "billboardOrg");
            return (Criteria) this;
        }

        public Criteria andBillboardTimeIsNull() {
            addCriterion("billboard_time is null");
            return (Criteria) this;
        }

        public Criteria andBillboardTimeIsNotNull() {
            addCriterion("billboard_time is not null");
            return (Criteria) this;
        }

        public Criteria andBillboardTimeEqualTo(Date value) {
            addCriterion("billboard_time =", value, "billboardTime");
            return (Criteria) this;
        }

        public Criteria andBillboardTimeNotEqualTo(Date value) {
            addCriterion("billboard_time <>", value, "billboardTime");
            return (Criteria) this;
        }

        public Criteria andBillboardTimeGreaterThan(Date value) {
            addCriterion("billboard_time >", value, "billboardTime");
            return (Criteria) this;
        }

        public Criteria andBillboardTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("billboard_time >=", value, "billboardTime");
            return (Criteria) this;
        }

        public Criteria andBillboardTimeLessThan(Date value) {
            addCriterion("billboard_time <", value, "billboardTime");
            return (Criteria) this;
        }

        public Criteria andBillboardTimeLessThanOrEqualTo(Date value) {
            addCriterion("billboard_time <=", value, "billboardTime");
            return (Criteria) this;
        }

        public Criteria andBillboardTimeIn(List<Date> values) {
            addCriterion("billboard_time in", values, "billboardTime");
            return (Criteria) this;
        }

        public Criteria andBillboardTimeNotIn(List<Date> values) {
            addCriterion("billboard_time not in", values, "billboardTime");
            return (Criteria) this;
        }

        public Criteria andBillboardTimeBetween(Date value1, Date value2) {
            addCriterion("billboard_time between", value1, value2, "billboardTime");
            return (Criteria) this;
        }

        public Criteria andBillboardTimeNotBetween(Date value1, Date value2) {
            addCriterion("billboard_time not between", value1, value2, "billboardTime");
            return (Criteria) this;
        }

        public Criteria andIsExpiredIsNull() {
            addCriterion("is_expired is null");
            return (Criteria) this;
        }

        public Criteria andIsExpiredIsNotNull() {
            addCriterion("is_expired is not null");
            return (Criteria) this;
        }

        public Criteria andIsExpiredEqualTo(Integer value) {
            addCriterion("is_expired =", value, "isExpired");
            return (Criteria) this;
        }

        public Criteria andIsExpiredNotEqualTo(Integer value) {
            addCriterion("is_expired <>", value, "isExpired");
            return (Criteria) this;
        }

        public Criteria andIsExpiredGreaterThan(Integer value) {
            addCriterion("is_expired >", value, "isExpired");
            return (Criteria) this;
        }

        public Criteria andIsExpiredGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_expired >=", value, "isExpired");
            return (Criteria) this;
        }

        public Criteria andIsExpiredLessThan(Integer value) {
            addCriterion("is_expired <", value, "isExpired");
            return (Criteria) this;
        }

        public Criteria andIsExpiredLessThanOrEqualTo(Integer value) {
            addCriterion("is_expired <=", value, "isExpired");
            return (Criteria) this;
        }

        public Criteria andIsExpiredIn(List<Integer> values) {
            addCriterion("is_expired in", values, "isExpired");
            return (Criteria) this;
        }

        public Criteria andIsExpiredNotIn(List<Integer> values) {
            addCriterion("is_expired not in", values, "isExpired");
            return (Criteria) this;
        }

        public Criteria andIsExpiredBetween(Integer value1, Integer value2) {
            addCriterion("is_expired between", value1, value2, "isExpired");
            return (Criteria) this;
        }

        public Criteria andIsExpiredNotBetween(Integer value1, Integer value2) {
            addCriterion("is_expired not between", value1, value2, "isExpired");
            return (Criteria) this;
        }

        public Criteria andIsTopIsNull() {
            addCriterion("is_top is null");
            return (Criteria) this;
        }

        public Criteria andIsTopIsNotNull() {
            addCriterion("is_top is not null");
            return (Criteria) this;
        }

        public Criteria andIsTopEqualTo(Integer value) {
            addCriterion("is_top =", value, "isTop");
            return (Criteria) this;
        }

        public Criteria andIsTopNotEqualTo(Integer value) {
            addCriterion("is_top <>", value, "isTop");
            return (Criteria) this;
        }

        public Criteria andIsTopGreaterThan(Integer value) {
            addCriterion("is_top >", value, "isTop");
            return (Criteria) this;
        }

        public Criteria andIsTopGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_top >=", value, "isTop");
            return (Criteria) this;
        }

        public Criteria andIsTopLessThan(Integer value) {
            addCriterion("is_top <", value, "isTop");
            return (Criteria) this;
        }

        public Criteria andIsTopLessThanOrEqualTo(Integer value) {
            addCriterion("is_top <=", value, "isTop");
            return (Criteria) this;
        }

        public Criteria andIsTopIn(List<Integer> values) {
            addCriterion("is_top in", values, "isTop");
            return (Criteria) this;
        }

        public Criteria andIsTopNotIn(List<Integer> values) {
            addCriterion("is_top not in", values, "isTop");
            return (Criteria) this;
        }

        public Criteria andIsTopBetween(Integer value1, Integer value2) {
            addCriterion("is_top between", value1, value2, "isTop");
            return (Criteria) this;
        }

        public Criteria andIsTopNotBetween(Integer value1, Integer value2) {
            addCriterion("is_top not between", value1, value2, "isTop");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}